/*
 * @Author: 晟松
 * @Date: 2022-02-26 19:36:59
 * @LastEditors: 晟松
 * @LastEditTime: 2022-02-26 19:51:43
 * @FilePath: \volunteer-vue3-admin\src\utils\trans.js
 * @Description:
 */
// 在table中转换一下性别为中文
export const genderTrans = (row, column, cellValue, index) => {
    if (cellValue == "male") {
        return "男";
    } else if (cellValue == "female") {
        return "女";
    } else {
        return "无";
    }
};
// 转换一下年级
export const gradeTrans = (cellValue) => {
    let res = "";
    switch (cellValue) {
        case 1: {
            res = "大一";
            break;
        }
        case 2: {
            res = "大二";
            break;
        }
        case 3: {
            res = "大三";
            break;
        }
        case 4: {
            res = "大四";
            break;
        }
        case 8: {
            res = "其他";
            break;
        }
    }
    return res;
};
